package com.atguigu.gmall.item.service;

public interface LockService {
    /**
     * 使用redis加锁
     * @return
     */
    String lock() throws InterruptedException;

    /**
     * 解锁
     * @param uuid
     */
    void unlock(String uuid);
}
